package com.bjpowernode.boss.exceptions;

import com.bjpowernode.boss.enums.RespCode;

//自定义异常类
public class BossException extends RuntimeException{

    private RespCode respCode;
    public BossException() {
        super();
    }

    public BossException(String message) {
        super(message);
    }

    public BossException(RespCode respCode) {
        super(respCode.getMsg());
        this.respCode = respCode;
    }

    public RespCode getRespCode() {
        return respCode;
    }
}
